package com.itzjc.domain.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 数据库POJO_projectInfo表
 *
 * @className: Project
 * @date: 2021-06-10 21:43
 **/
public class ProjectInfo implements Serializable {
    private Integer id;
    @JsonProperty("project_name")
    private String projectName;
    @JsonProperty("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private String province;
    private String city;
    @JsonProperty("address_details")
    private String addressDetails;

    @JsonProperty("open_status")
    private Integer openStatus;

    private Integer authorized;
    //结构类型，记录整数数值，根据这个数值到对应的类型表中查询就行了
    private Integer stype;

    //有参、空参、set/get、toString


    @Override
    public String toString() {
        return "ProjectInfo{" +
                "id=" + id +
                ", projectName='" + projectName + '\'' +
                ", createTime=" + createTime +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", addressDetails='" + addressDetails + '\'' +
                ", openStatus=" + openStatus +
                ", authorized=" + authorized +
                ", stype=" + stype +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getAddressDetails() {
        return addressDetails;
    }

    public void setAddressDetails(String addressDetails) {
        this.addressDetails = addressDetails;
    }

    public Integer getOpenStatus() {
        return openStatus;
    }

    public void setOpenStatus(Integer openStatus) {
        this.openStatus = openStatus;
    }

    public Integer getAuthorized() {
        return authorized;
    }

    public void setAuthorized(Integer authorized) {
        this.authorized = authorized;
    }

    public Integer getStype() {
        return stype;
    }

    public void setStype(Integer stype) {
        this.stype = stype;
    }

    public ProjectInfo(Integer id, String projectName, Date createTime, String province, String city, String addressDetails, Integer openStatus, Integer authorized, Integer stype) {
        this.id = id;
        this.projectName = projectName;
        this.createTime = createTime;
        this.province = province;
        this.city = city;
        this.addressDetails = addressDetails;
        this.openStatus = openStatus;
        this.authorized = authorized;
        this.stype = stype;
    }

    public ProjectInfo() {
    }
}
